import '../css/foo-style.css';
document.write('foo.js');

import React from 'react';
// import './util';
// import('./bar.js');
document.write('foo.js', React.version);

// import { add } from './bar.js';
// console.log(add(2, 3));

import(/* webpackChunkName: "bar" */ './bar.js').then(({ add }) => {
  console.log(add(2, 4));
});

document.write(ENV);

import '../ts/print.ts';
